package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.IntegralDetailsVO;
import com.sc.nft.entity.UserExchangeRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AdminUserExchangeRecordVO;
import com.sc.nft.entity.vo.UserExchangeRecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * (sc_user_exchange_record)数据Mapper
 *
 * @author rdg
 * @since 2022-05-31 17:33:19
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserExchangeRecordMapper extends BaseMapper<UserExchangeRecord> {

    List<UserExchangeRecordVo> getUserExchangeRecord(@Param("userId") Long userId);

    Page<AdminUserExchangeRecordVO> pageUserExchangeRecord(Page page,@Param("userId") Long userId, @Param("typeClassify") Integer typeClassify,
                                                           @Param("startDate") Date startDate, @Param("endDate") Date endDate);
}
